import {
    request
} from './request'
import qs from 'qs'

export function getCommentary(orderObj) {
    return request({
        url: `product/getCommentary`,
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

export function updateComm(orderObj) {
    return request({
        url: `product/updateComment`,
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

export function deleteComm(orderObj) {
    return request({
        url: `product/deleteProductComm`,
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

//导表
export function importCommExcel(obj) {
    return request({
        url: `product/importComment`,
        headers: { 'content-type': 'multipart/form-data' },
        method: 'post',
        data: obj
    })
}